package com.fl.springcloud.service;

import com.fl.springcloud.entities.PayMent;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

public interface PaymentService {
    public int save(PayMent payMent);

    public PayMent getPaymentById(@Param("id") Long id);

    public String payment_ok(Integer id);

    public String payment_timeout(Integer id);

    public String paymentCircuitBreaker(@PathVariable("id") Integer id);
}
